
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGImageBackground.h>
#include <OpenSG/OSGImageBackgroundBase.h>
#include <OpenSG/OSGDrawAction.h>
#include <OpenSG/OSGViewport.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_ImageBackground_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_ImageBackground()
{
    scope* osg_ImageBackgroundBase_scope = new scope(
    class_< osg::ImageBackgroundBase, bases< osg::Background > , boost::noncopyable >("ImageBackgroundBase", no_init)
//        .def_readonly("ColorFieldMask", &osg::ImageBackgroundBase::ColorFieldMask)
//        .def_readonly("ImageFieldMask", &osg::ImageBackgroundBase::ImageFieldMask)
//        .def_readonly("ScaleFieldMask", &osg::ImageBackgroundBase::ScaleFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::ImageBackgroundBase::MTInfluenceMask)
        .def("getClassType", &osg::ImageBackgroundBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::ImageBackgroundBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::ImageBackgroundBase::*)() )&osg::ImageBackgroundBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::ImageBackgroundBase::*)() const)&osg::ImageBackgroundBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::ImageBackgroundBase::getContainerSize)
        //.def("getColor", (osg::Color3f& (osg::ImageBackgroundBase::*)() )&osg::ImageBackgroundBase::getColor, return_value_policy< copy_const_reference >())
        .def("getColor", (const osg::Color3f& (osg::ImageBackgroundBase::*)() const)&osg::ImageBackgroundBase::getColor, return_value_policy< copy_const_reference >())
        //.def("getImage", (osg::ImagePtr& (osg::ImageBackgroundBase::*)() )&osg::ImageBackgroundBase::getImage, return_value_policy< copy_const_reference >())
        .def("getImage", (const osg::ImagePtr& (osg::ImageBackgroundBase::*)() const)&osg::ImageBackgroundBase::getImage, return_value_policy< copy_const_reference >())
        //.def("getScale", (bool& (osg::ImageBackgroundBase::*)() )&osg::ImageBackgroundBase::getScale, return_value_policy< copy_const_reference >())
        .def("getScale", (const bool& (osg::ImageBackgroundBase::*)() const)&osg::ImageBackgroundBase::getScale, return_value_policy< copy_const_reference >())
        .def("setColor", &osg::ImageBackgroundBase::setColor)
        .def("setImage", &osg::ImageBackgroundBase::setImage)
        .def("setScale", &osg::ImageBackgroundBase::setScale)
        .def("getBinSize", &osg::ImageBackgroundBase::getBinSize)
        .def("copyToBin", &osg::ImageBackgroundBase::copyToBin)
        .def("copyFromBin", &osg::ImageBackgroundBase::copyFromBin)
        .def("create", &osg::ImageBackgroundBase::create)
        .def("createEmpty", &osg::ImageBackgroundBase::createEmpty)
        .def("shallowCopy", &osg::ImageBackgroundBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("ColorFieldId") = (int)osg::ImageBackgroundBase::ColorFieldId;
    scope().attr("NextFieldId") = (int)osg::ImageBackgroundBase::NextFieldId;
    scope().attr("ImageFieldId") = (int)osg::ImageBackgroundBase::ImageFieldId;
    scope().attr("ScaleFieldId") = (int)osg::ImageBackgroundBase::ScaleFieldId;

    delete osg_ImageBackgroundBase_scope;

    class_< osg::ImageBackground, bases< osg::ImageBackgroundBase > , boost::noncopyable, osg::ImageBackgroundRefPtr >("ImageBackground", no_init)
        .def("clear", &osg::ImageBackground::clear)
        .def("changed", &osg::ImageBackground::changed)
        .def("dump", &osg::ImageBackground::dump, osg_ImageBackground_dump_overloads_0_2())
    ;


    register_ptr_to_python<osg::ImageBackgroundPtr>();
    implicitly_convertible<osg::ImageBackgroundRefPtr, osg::ImageBackgroundPtr>();
    implicitly_convertible<osg::ImageBackgroundPtr, osg::BackgroundPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::ImageBackgroundPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::ImageBackgroundPtr>);
}

